import request from '@/utils/request'
export default{
  //添加小节信息
  addVideoInfo(VideoInfo){
    return request({
      url: `/edu-service/video/add`,
      method: 'post',
      data: VideoInfo
    })
  },

  //获取小节信息
  getVideoInfo(id){
    return request({
      url: `/edu-service/video/getVideo/${id}`,
      method: 'get'
    })
  },

  //更新小节信息
  updateVideoInfo(VideoInfo){
    return request({
      url: `/edu-service/video/update`,
      method: 'post',
      data: VideoInfo
    })
  },

  //删除小节信息
  deleteVideo(id){
    return request({
      url: `/edu-service/video/delete/${id}`,
      method: 'delete'
    })
  },

  //删除视频
  removeVideo(id){
    return request({
      url: `/vod-service/video/delete/${id}`,
      method: 'delete'
    })
  }
}
